<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'contact.label', default: 'Contact')}"/>
    <title>借款人(个人)</title>
    <style>
    .table>tbody>tr>td{
        vertical-align: middle;
    }
    @media screen and (min-width:1900px) and (max-width:1920px) {
        .flex{
            display: flex;justify-content: center;align-items: center;
        }
    }
    .select2-container .select2-choices .select2-search-field input,.select2-container .select2-choice,.select2-container .select2-choices{
        color: #999;
    }
    .allInputRadio{
        width: 160px;
        float: left;
        margin-top: 5px;
    }
    </style>
</head>

<body class="fixed-navbar fixed-sidebar">

<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right navFloatRight">
                <ol class="hbreadcrumb breadcrumb">
                    <li>
                        <span>CINDTATA PLS</span>
                    </li>
                    <li class="active">
                        <span>借款人(个人)</span>
                    </li>
                </ol>
            </div>
        </div>
    </div>
</div>

<div class="content animate-panel">
    <div class="row">
        <g:form method="POST" action="index" class="form-horizontal" role="form" id="form">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    <div class="panel-tools">
                        <button class="btn btn-primary btn-xs" type="submit" onclick="text()"><i class="fa fa-search"></i> 查询</button>
                        <button class="btn btn-warning2 btn-xs" type="button" id="resetBtn">
                            <i class="fa fa-times"></i> 重置</button>
                    </div>
                    查询
                </div>
                <div class="panel-body seach-group" id="bug1">
                    <div class="row">
                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">借款人姓名</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="fullName" id="fullName" value="${params?.fullName}" placeholder="请输入借款人姓名">
                            </div>
                        </div>
                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">证件类型</label>
                            <div class="col-sm-9 input-group" style="display: flex;justify-content: center">
                                <g:select class="form-control" name="identityType" id="identityType"
                                          optionKey="id" optionValue="name"
                                          from="${com.cindata.dictionary.ContactIdentityType.list()}"
                                          value="${params?.identityType}"
                                          noSelection="${['': '请选择证件类型']}"/>
                            </div>
                        </div>
                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">证件号码</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="idNumber" id="idNumber" value="${params?.idNumber}" placeholder="请输入证件号码">
                            </div>
                        </div>
                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">手机号</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="cellphone" id="cellphone" value="${params?.cellphone}" placeholder="请输入手机号">
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">地址</label>
                            <div class="col-sm-9 input-group" style="display: flex;justify-content: center">
                                <input type="text" class="form-control" name="address" id="address" value="${params?.address}" placeholder="请输入地址信息">
                            </div>
                        </div>
                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">银联借记卡号</label>
                            <div class="col-sm-9 input-group" style="display: flex;justify-content: center">
                                <input type="text" class="form-control" name="debitCardNumber" id="debitCardNumber" value="${params?.debitCardNumber}" placeholder="请输入银联借记卡号">
                            </div>
                        </div>
                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">潜在风险</label>
                            <div class="col-sm-9 input-group" style="display: flex;justify-content: center">
                                <g:select class="form-control" name="creditRiskLevel" id="creditRiskLevel"
                                          optionKey="label" optionValue="label"
                                          from="${com.cindata.dimension.CreditScoreRiskDimension.list()}"
                                          value="${params?.creditRiskLevel}"
                                          noSelection="${['': '请选择潜在风险']}"/>
                            </div>
                        </div>
                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">批次名</label>
                            <div class="col-sm-9 input-group" style="display: flex;justify-content: center">
                                <g:select class="form-control" name="batch" id="batch"
                                          optionKey="id" optionValue="batchNumber"
                                          from="${com.cindata.ContactImportBatch.list()}"
                                          value="${params?.batch}"
                                          noSelection="${['': '请选择批次名']}"/>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">当前处置状态</label>
                            <div class="col-sm-9 input-group" style="display: flex;justify-content: center">
                                <g:select class="form-control" name="riskWarningStatus" id="riskWarningStatus"
                                  from="${com.cindata.ContactRiskWarningDisposition.constrainedProperties.status.inList}"
                                  valueMessagePrefix="status" optionKey="" optionValue=""
                                  value="${params?.riskWarningStatus}"
                                  noSelection="${['': '请选择当前处置状态']}"/>
                            </div>
                        </div>

                        <div class="form-group col-sm-3">
                            <label class="col-sm-3 control-label">当前处置措施</label>
                            <div class="col-sm-9 input-group" style="display: flex;justify-content: center">
                                <g:select class="form-control" name="riskWarningDispositionType" id="riskWarningDispositionType"
                                  from="${com.cindata.dictionary.ContactRiskWarningDispositionType.list()}"
                                  valueMessagePrefix="status" optionKey="id" optionValue="name"
                                  value="${params?.riskWarningDispositionType}"
                                  noSelection="${['': '请选择当前处置措施']}"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </g:form>
    </div>

    <div class="row">
        <div class="hpanel hgreen">
            <div class="panel-heading">
                <div class="panel-tools">
                    <g:link action="create" class="btn btn-info btn-xs" controller="contact"><i class="fa fa-plus"></i>新建</g:link>
                    <div class="btn btn-warning btn-xs" href="" id="bigDataQuery" onclick="openModal(this);"><i class="fa fa-plus"></i>全量大数据查询</div>
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                &nbsp;&nbsp;
            </div>

            <div class="panel-body no-padding">
                <div class="table-responsive">
                    <table cellpadding="1" cellspacing="1" class="table table-striped table-bordered table-hover text-center" id="esateTable">
                        <thead>
                        <tr>
                            <th style="width: 60px;" class="col-md-1 text-center sortable"><input type="checkbox" class="i-checks allCheckbox" id="allOptionId"></th>
                            <g:sortableColumn property="fullName" title="借款人姓名" class="text-center" params="${params}"/>
                            <g:sortableColumn property="sex" title="性别" class="text-center" params="${params}"/>
                            <g:sortableColumn property="identityType" title="证件类型" class="text-center" params="${params}"/>
                            <g:sortableColumn property="idNumber" title="证件号码" class="text-center" params="${params}"/>
                            <g:sortableColumn property="cellphone" title="手机号" class="text-center" params="${params}"/>
                            <g:sortableColumn property="address" title="地址" class="text-center" params="${params}"/>
                            <g:sortableColumn property="debitCardNumber" title="银联借记卡号" class="text-center" params="${params}"/>
                            <g:sortableColumn property="householdAddress" title="户口所在地" class="text-center" params="${params}"/>
                            <g:sortableColumn property="workUnitName" title="工作单位" class="text-center" params="${params}"/>
                            <g:sortableColumn property="position" title="职务" class="text-center" params="${params}"/>
                            <g:sortableColumn property="batch" title="批次名" class="text-center" params="${params}"/>
                            <!-- <g:sortableColumn property="creditScore" title="大数据评分" class="text-center" params="${params}"/> -->
                            <g:sortableColumn property="creditScore" title="潜在风险" class="text-center" params="${params}"/>
                            <g:sortableColumn property="creditScore" title="当前处置状态" class="text-center" params="${params}"/>
                            <g:sortableColumn property="creditScore" title="当前处置措施" class="text-center" params="${params}"/>
                            <g:sortableColumn property="creditScore" title="操作时间" class="text-center" params="${params}"/>
                            <g:sortableColumn property="creditScore" title="最新查询时间" class="text-center" params="${params}"/>
                            <th style="color: #34495e;">操作项</th>
                        </tr>
                        </thead>
                        <tbody>
                        <g:each in="${contactList}">
                            <tr>
                                <g:if test="${com.cindata.DateUtilService.isQuery(it?.creditLatestQueryDate)}">
                                    <td><input type="checkbox" class="i-checks everyCheckbox" name="everyCheckbox" value="${it?.id}"></td>
                                </g:if>
                                <g:else>
                                    <td><input type="checkbox" class="i-checks everyCheckbox" name="everyCheckbox" value="${it?.id}" disabled="true"></td>
                                </g:else>
                                <td class="nameFormat"><g:link style="color: #3498DB" action="show" class="firstTd" id="${it?.id}">${it?.fullName}</g:link></td>
                                <td>${it?.sex ? it?.sex : '-'}</td>
                                <td>${it?.identityType ? it?.identityType?.name : '-'}</td>
                                <td class="certificateFormat">${it?.idNumber? it?.idNumber : '-'}</td>
                                <td class="cellphoneFormat">${it?.cellphone ? it?.cellphone : '-'}</td>
                                <td>${it?.address ? it?.address : '-'}</td>
                                <td>${it?.debitCardNumber?it?.debitCardNumber:'-'}</td>
                                <td>${it?.householdAddress ? it?.householdAddress: '-'}</td>
                                <td>${it?.workUnitName ? it?.workUnitName: '-'}</td>
                                <td>${it?.position ? it?.position: '-'}</td>
                                <td>${it?.batch ? it?.batch?.batchNumber: '-'}</td>
                                <!-- <td>${it?.creditScore?com.cindata.NumberUtil.GetFixedNumber(it?.creditScore):'0.00'}</td> -->
                                <td>
                                    <g:if test="${it?.creditScore>=0&&it?.creditScore<=30}"><span style="color: #E51C23">高风险</span></g:if>
                                    <g:elseif test="${it?.creditScore>30&&it?.creditScore<=70}"><span style="color: #FF9800">中风险</span></g:elseif>
                                    <g:elseif test="${it?.creditScore>70}"><span style="color: #62CB31">低风险</span></g:elseif>
                                    <g:else>-</g:else>
                                </td>
                                <td>${params['riskWarningStatus'] ? params['riskWarningStatus'] : com.cindata.ContactRiskWarningDisposition.findAllByContact(it).sort{a, b -> a.disposalDate > b.disposalDate ? -1 : 1 }[0]?.status}</td>
                                <td>${params['riskWarningDispositionType'] ? com.cindata.dictionary.ContactRiskWarningDispositionType.findById(params['riskWarningDispositionType'])?.name : com.cindata.ContactRiskWarningDisposition.findAllByContact(it).sort{a, b -> a.disposalDate > b.disposalDate ? -1 : 1 }[0]?.type?.name}</td>
                                <td>
                                    <g:if test="${com.cindata.ContactRiskWarningDisposition.findAllByContact(it).sort{a, b -> a.disposalDate > b.disposalDate ? -1 : 1 }[0]?.disposalDate}">
                                        <g:formatDate date="${com.cindata.ContactRiskWarningDisposition.findAllByContact(it).sort{a, b -> a.disposalDate > b.disposalDate ? -1 : 1 }[0]?.disposalDate}" format="yyyy-MM-dd"></g:formatDate>
                                    </g:if>
                                </td>
                                <td>
                                    <g:if test="${it?.creditLatestQueryDate}">
                                        <g:formatDate date="${it?.creditLatestQueryDate}" format="yyyy-MM-dd"></g:formatDate>
                                    </g:if>
                                </td>
                                <td>
                                    <g:if test="${com.cindata.DateUtilService.isQuery(it?.creditLatestQueryDate)}">
                                        <div class="btn btn-xs btn-outline btn-info" href="" id="creditQuery" onclick="openModal(this,${it?.id});">查询</div>
                                    </g:if>
                                    <g:else>
                                        <a class="btn btn-info btn-xs btn-outline" disabled style="color: #fff;">查询</a>
                                    </g:else>
                                    <g:link controller="contact" action="show" id="${it?.id}" class="btn btn-info btn-xs btn-outline">查看</g:link>
                                </td>
                            </tr>
                        </g:each>
                        </tbody>
                    </table>
                </div>
            </div>

            <div class="panel-footer">
                <div class="pagination">
                    <g:paginate action="index" total="${contactCount ?: 0}" params="${params}"/>
                </div>
                <div class="text-center">
                    <button type="button" class="btn w-xs btn-success" href="" id="batchQuery" onclick="openModal(this);">批量大数据查询</button>
                    <button type="button" class="btn w-xs btn-default cancelButton" style="margin-left: 20px;">取消</button>
                </div>
            </div>
        </div>
    </div>
</div>

%{--弹框--}%
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="color-line" style="background: #3498db"></div>
            <!-- <div class="modal-header text-center">
                <h4 class="modal-title">确定大数据查询该借款人吗？</h4>
            </div> -->
            <div class="modal-body">
                <div class="row">
                    <div class="riskControl">
                        <div class="col-md-12 ">
                            <p>请选择风控纬度</p>
                            <input type="hidden" name="contactId" id="contactId" value="">
                            <input type="hidden" name="contactId" id="type" value="">
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="multiplatformLending" value="多平台借贷">多平台借贷</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="familyAddress" value="家庭住址">家庭住址</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="logisticsAddress" value="物流地址">物流地址</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="jingdongAuthorization" value="京东授权">京东授权</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="accumulationFund" value="公积金">公积金</div>
                        </div>
                        <div class="col-md-12">
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="judicialInformation" value="司法信息">司法信息</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="operatorInformation" value="运营商信息">运营商信息</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="taxInformation" value="纳税信息">纳税信息</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="taobaoAuthorized" value="淘宝授权">淘宝授权</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="educationInformation" value="学历信息">学历信息</div>
                        </div>
                        <div class="col-md-12">
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="creditInformation" value="征信信息">征信信息</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="unitInformation" value="单位信息">单位信息</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="travelInformation" value="出行信息">出行信息</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="alipayAuthorization" value="支付宝授权">支付宝授权</div>
                            <div class="allInputRadio"><input type="checkbox" class="i-checks" name="assetInformation" value="资产信息">资产信息</div>
                        </div>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                
                <div class="row">
                    <div style="display: none" id="CreditRisk" class="col-md-12 ">
                        <p>请选择借款人</p>
                        <div class="allInputRadio">
                            <input type="checkbox" class="i-checks" name="allCreditRiskLevel">全部客户
                        </div>
                        <g:each in="${com.cindata.dimension.CreditScoreRiskDimension.list()}">
                            <div class="allInputRadio">
                                <input type="checkbox" class="i-checks" name="creditRiskLevel" value="${it?.label}">${it?.label}客户<span style="color: #E51C23">(${com.cindata.Contact.countByCreditScoreGreaterThanAndCreditScoreLessThanEqualsAndAccount(it?.minValue, it?.maxValue, com.cindata.User.findById(session.SPRING_SECURITY_CONTEXT.authentication.principal.id)?.account)}个)</span>
                            </div>
                        </g:each>
                    </div>
                </div>
                <div class="text-center">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal" id="confirmQuery" onclick="confirmQuery();">大数据查询</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" id="closeModal">关闭</button>
            </div>
        </div>
    </div>
</div>

<g:javascript>
    //弹出模态框
    function openModal(obj,contactId) {
        var type = obj.id;
        console.log(type);
        $("#type").val(type);
        //是否显示风险客户
        if(type=="bigDataQuery"){
            $('#CreditRisk').show();
        }else{
            $('#CreditRisk').hide();
        }
        if(type=="creditQuery"){
            console.log(contactId);
            $("#contactId").val(contactId);
        }
        if(type=="batchQuery"){
            var ids = $("input:checkbox[name='everyCheckbox']:checked").map(function (index, elem) {
                return $(elem).val();
            }).get().join(',');
            if (!ids) {
                toastr.error('请选择借款人！');
                return
            }
            $("#contactId").val(ids);
            console.log(ids);
        }

        $('#myModal').modal('show');
    }
    //保存
    function confirmQuery() {
        var type = $("#type").val();
        var contactId ="";
        var creditRiskLevel="";
        var riskControl = $(".riskControl").find("input:checkbox:checked").map(function (index, elem) {
            return $(elem).val();
        }).get().join(',');
        if (!riskControl) {
            toastr.error('请选择风控纬度！');
            return
        }
        if(type=="bigDataQuery"){
            creditRiskLevel = $("input:checkbox[name='creditRiskLevel']:checked").map(function (index, elem) {
                return $(elem).val();
            }).get().join(',');
            if (!creditRiskLevel) {
                toastr.error('请选择借款人！');
                return
            }
        }else{
            type="batchQuery";
            contactId = $("#contactId").val();
        }
        var data = {
            creditRiskLevel: creditRiskLevel,
            type: type,
            ids:contactId,
            riskControl:riskControl
        };
        $.ajax({
            url: '/contact/bigDataScoreQuery',
            data: data,
            type: "post",
            success: function (data) {
                if (data.status == "success") {
                    window.location = window.location
                } else {
                    swal("大数据查询失败，请稍后重试", "", "error");
                }
            }
        })
    }
    //风控选择
    var riskControlBoxs = $('.riskControl').find("input"); //所有单选的input
    riskControlBoxs.on('ifChanged', function (event) {
        $('.riskControlResult').show();
        riskControlBoxs.each(function (i) {
            if(riskControlBoxs[i].checked){
                $("#"+riskControlBoxs[i].name).show()
            }else{
                $("#"+riskControlBoxs[i].name).hide()
            }

        })
    });
    //风险客户
    var CreditRiskBoxs = $("#CreditRisk").find("input[name='creditRiskLevel']");
    var CreditRiskBoxsAll = $("#CreditRisk").find("input[name='allCreditRiskLevel']");
    CreditRiskBoxsAll.on('ifChecked ifUnchecked', function (event) {
        if (event.type == 'ifChecked') {
            CreditRiskBoxs.iCheck('check');
        } else {
            CreditRiskBoxs.iCheck('uncheck');
        }
    });
    CreditRiskBoxs.on('ifChanged', function (event) {
        if (CreditRiskBoxs.filter(':checked').length == CreditRiskBoxs.length) {
            CreditRiskBoxsAll.prop('checked', true);
        } else {
            CreditRiskBoxsAll.prop('checked', false);
        }
        CreditRiskBoxsAll.iCheck('update');
    });
    //清空已选
    $("#clearAll").click(function () {
        $('.riskControlResult').hide();
        riskControlBoxs.iCheck('uncheck');
    });
    //关闭模态框清空
    $("#closeModal").click(function () {
        riskControlBoxs.iCheck('uncheck');
        $('.riskControlResult').hide();
        CreditRiskBoxs.iCheck('uncheck');
        checkboxs.iCheck('uncheck');
    });
    //初始化大数据查询
    $("#initQuery").click(function () {
        var data = {
            type: 'initQuery'
        };
        $.ajax({
            type: "post",
            url: "/contact/bigDataScoreQuery",
            data: data,
            success: function () {

            }
        });
        swal({
            title: "大数据查询中",
            text: "",
            type: "success"
        },
                function () {
                    window.location = window.location
                }
        );
    });
    //大数据查询
    $("#confirm").click(function () {
        var creditRiskLevel = $("input:checkbox[name='creditRiskLevel']:checked").map(function (index, elem) {
            return $(elem).val();
        }).get().join(',');
        if (!creditRiskLevel) {
            toastr.error('请选择借款人！');
            return
        }
        var data = {
            creditRiskLevel: creditRiskLevel,
            type: 'bigDataQuery'
        };
        $.ajax({
            type: "post",
            url: "/contact/bigDataScoreQuery",
            data: data,
            success: function () {

            }
        });
        swal({
            title: "大数据查询中",
            text: "",
            type: "success"
        },
                function () {
                    window.location = window.location
                }
        );
    });
    //批量大数据查询
    $(".warningButton").click(function () {
        var ids = $("input:checkbox[name='everyCheckbox']:checked").map(function (index, elem) {
            return $(elem).val();
        }).get().join(',');
        if (!ids) {
            toastr.error('请选择借款人！');
            return
        }
        swal({
            title: "确定大数据查询该借款人吗？",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            closeOnConfirm: true
        },
                function () {
                    $.ajax({
                        url: '/contact/bigDataScoreQuery',
                        data: {
                            ids: ids,
                            type: 'batchQuery'
                        },
                        type: "post",
                        success: function (data) {
                            if (data.status == "success") {
                                window.location = window.location
                            } else {
                                swal("大数据查询失败，请稍后重试", "", "error");
                            }
                        }
                    })
                });
    });
   //列表多选框
    var checkAll = $('.allCheckbox');  //全选的input
    var checkboxs = $('.everyCheckbox').not(':disabled'); //所有单选的input

    checkAll.on('ifChecked ifUnchecked', function (event) {
        if (event.type == 'ifChecked') {
            checkboxs.iCheck('check');
        } else {
            checkboxs.iCheck('uncheck');
        }
    });

    checkboxs.on('ifChanged', function (event) {
        if (checkboxs.filter(':checked').length == checkboxs.length) {
            checkAll.prop('checked', true);
        } else {
            checkAll.prop('checked', false);
        }
        checkAll.iCheck('update');
    });
    //取消按钮事件
    $(".cancelButton").click(function () {
        checkboxs.iCheck('uncheck');
    });

    $(function () {
        $('#datepicker').datepicker({
            language: 'zh-CN'
        });
        $("#datepicker").on("changeDate", function (event) {
            $("#my_hidden_input").val(
                    $("#datepicker").datepicker('getFormattedDate')
            )
        });

        $('.input-group.date').datepicker({});
        $('.input-daterange').datepicker({});
    });

    //重置按钮
    $("#resetBtn").click(function () {
        $("#s2id_city span:first").html("请选择城市");
        $("#city").val("");
        $("#s2id_identityType span:first").html("请选择证件类型");
        $("#identityType").val("");
        $("#fullName").val("");
        $("#s2id_householdType span:first").html("请选择户口性质");
        $("#householdType").val("");
        $("#idNumber").val("");
        $("#s2id_birthdayStart span:first").html("请输入出生年月上限");
        $("#birthdayStart").val("");
        $("#s2id_birthdayEnd span:first").html("请输入出生年月下限");
        $("#birthdayEnd").val("");
        $("#s2id_sex span:first").html("请选择性别");
        $("#sex").val("");
        $("#s2id_degree span:first").html("请选择学历");
        $("#degree").val("");
        $("#cellphone").val("");
        $("#address").val("");
        $("#debitCardNumber").val("");
        $("#creditScoreStart").val("");
        $("#creditScoreEnd").val("");
        $("#s2id_creditRiskLevel span:first").html("请选择潜在风险");
        $("#creditRiskLevel").val("");
        $("#s2id_batch span:first").html("请选择批次名");
        $("#batch").val("");
        $("#s2id_riskWarningStatus span:first").html("请选择当前处置状态");
        $("#riskWarningStatus").val("");
        $("#s2id_riskWarningDispositionType span:first").html("请选择当前处置措施");
        $("#riskWarningDispositionType").val("");
    });
</g:javascript>

</body>
</html>
